package icu.lookyousmileface.functionfour;

import java.util.function.Function;

/**
 * @author starrysky
 * @title: FunctionUse
 * @projectName Juc_Pro
 * @description: Function，输入，返回啥
 * @date 2021/1/2911:37 下午
 */
public class FunctionUse {
    public static void main(String[] args) {
//        Function<String,String> functionInterface = new Function<String,String>() {
//            @Override
//            public String apply(String o) {
//                System.out.println(o);
//                return o;
//            }
//        };

//        functionInterface.apply("你好");
    Function<String,String> functionInterface = (str)->{ System.out.println(str);return str;};
    functionInterface.apply("你好！");
    }
}
